/*
 * Copyright (c) 2018-2999 九五云信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 */

package com.yami.shop.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.app.dto.UserInfoDto;
import com.yami.shop.bean.model.User;
import com.yami.shop.bean.model.UserExtension;
import com.yami.shop.bean.param.*;
import com.yami.shop.common.util.PageParam;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 用户扩展信息
 *
 * @author LGH
 * @date 2020-02-26 16:03:14
 */
public interface UserExtensionService extends IService<UserExtension> {

    Page<UserExtension> getPage(PageParam<UserExtension> page, UserExtension userExtension);

    void setUserLevelBylevelId(Integer level, Integer levelType);

    void updateMemberByTime(List<User> userList, List<UserExtension> userExtensions);

    void setMaxUserLevelByLevelId(Integer level, Integer minNeedGrowth, Integer maxNeedGrowth, Integer levelType);

    void updateBatchByUserId(List<UserExtension> userExtensions);

    List<MemberTrendRespParam> getMemberTrend(MemberReqParam param);


    void updateBalanceByVersion(UserExtension userExtension);

    UserInfoDto getUserInfo(String userId);

}
